// component/comment/comment.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
      comment:{
        type:Object,
        value:{}
      }
    },

    /**
     * 组件的初始数据
     */
    data: {
        image: 'https://cdn-we-retail.ym.tencent.com/retail-ui/components-exp/avatar/avatar-v2/1.png',
    },

    /**
     * 组件的方法列表
     */
    methods: {
        avatarClick(events){
            console.log("commentClick",events)
            wx.navigateTo({
              url: `/pages/label/userInfo/userInfo?id=${events.currentTarget.dataset.id}`,
              events: events,
              success: (result) => {},
              fail: (res) => {},
              complete: (res) => {},
            })
        }
    }
})